package com.isoft.c2team3service2.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.isoft.c2team3service2.entity.UserMessage;
import com.isoft.c2team3service2.entity.UserMessageVO;


import java.util.List;

public interface UserMessageService extends IService<UserMessage> {
    // 发送消息（含未关注限制）
    boolean sendMessage(Integer receiverId, String content);

    // 查询与指定用户的会话
    List<UserMessageVO> getConversation(Integer receiverId, Integer page, Integer size);

    // 标记消息为已读
    boolean markAsRead(List<Integer> messageIds);

    // 查询未读消息总数
    Integer getUnreadCount();
}